package com.aaa.system.Controller;

import com.aaa.entity.LoginInfo;
import com.aaa.system.service.LoginLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("system/loginLog/")
public class LoginLogController {

    @Autowired
    private LoginLogService loginLogService;

    @PostMapping("addLog")
    public void addLoginLog(@RequestBody LoginInfo loginInfo){
        loginLogService.addLoginLog(loginInfo);
    }
}
